<template>
    <h2>三条</h2>
    <h2>{{ cjb }}</h2>
</template>

<script setup>
import { inject } from "vue";
const cjb=inject('cjb')
const name=inject('name')
console.log(cjb)
console.log(name)
</script>

<style lang="scss" scoped>
h2{
    color:red;
}
</style>